Repository navigation
fix: Material You charging icon and live widget theme colors - #100
Merged
Merged
Conversation
added 4 commits
November 18, 2026 23:33
The repeating alarm only read the interval when first scheduled, so the settings slider had no effect until reboot or app update.
On Android 12+ pass color resources to RemoteViews so the launcher resolves them at draw time; follow-system mode uses night-qualified aliases. Colors no longer stay stale until the next widget update. Also use the alarm color for alarm-only partial updates.
Replace the color emoji bolt with a text glyph so it follows Material You and other theme colors instead of rendering yellow.
Replace the text glyph with a tinted vector icon next to the battery percentage. It is rendered at the battery text size so it scales with the size setting, and uses the widget secondary color.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes a bug report that the charging icon did not match Material You, plus related widget refresh issues found while auditing.
⚡emoji always rendered yellow and ignored the widget text color. It is now a Material "bolt" vector icon next to the battery percentage, tinted with the widget secondary color and sized from the battery text size (scales with the size setting).CONFIGURATION_CHANGEDnever reaches manifest receivers, so colors stayed stale until the next update. On Android 12+ the widget now passes color resources (RemoteViews.setColor/setColorStateList), resolved by the launcher at draw time. "Follow system" mode uses night-qualified aliases.Testing
./gradlew assembleDebug,lintDebug(no errors)ColorResolverTest(5 new cases),SystemStatsFetcherTest,MainActivitySmokeTest,AwidgetProviderScheduleTest